package com.kuaifu.autofare.common.enums;

public enum TopupActivityTypeEnum {
	ActivityType1(1, "充值固定金额，赠送券");

	private int key;
	private String value;

	private TopupActivityTypeEnum(int key, String value) {
		this.key = key;
		this.value = value;
	}

	public int getKey() {
		return key;
	}

	public void setKey(int key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public static TopupActivityTypeEnum get(int key) {
		for (TopupActivityTypeEnum typeEnum : TopupActivityTypeEnum.values()) {
			if (typeEnum.getKey() == key) {
				return typeEnum;
			}
		}
		return null;
	}
}
